/** COPYRIGHT(C) 2008. Loc Phan. All Rights Reserved.
A class that animate 2 cars on frame
@author Loc Phan
@version 1.01 2008-11-26
*/
package edu.sjsu.cs.phan.hw6;

import javax.swing.JFrame;

public class MoveTwoCar
{
   public static void main(String[] args)
   {
      final int FRAME_WIDTH = 480;
      final int FRAME_HEIGHT = 640;
      
      JFrame frame = new JFrame();
      frame.setTitle("Two Car Mover");
      frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);
      TwoCarsComponent car = new TwoCarsComponent(FRAME_WIDTH);
      frame.add(car);
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      frame.setVisible(true);
      

   }
}
